package com.powerwyx.lambda;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author 王艺锡
 * @version 1.0
 */
public class testLambda {
    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(100,200,150,60);
        Collections.sort(list);

        list.forEach(a -> {
            System.out.println(a);
        });
        //简化
        list.forEach(System.out::println);

    }

}
